package com.aigyun.statistic.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 登录日志表
 * </p>
 *
 * @author lius
 * @since 2019-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_login_log")
public class UserLoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 登录时间
     */
    private LocalDateTime loginTime;

    /**
     * IP地址
     */
    private String loginIp;

    /**
     * 国家
     */
    private String loginCountry;

    /**
     * 省份
     */
    private String loginProvince;

    /**
     * 城市
     */
    private String loginCity;

    /**
     * 1:web；2：app；3:H5
     */
    private Integer loginType;

    /**
     * 1：农户，2：植保商，3：植保队
     */
    private Integer userType;

    private LocalDateTime createTime;


}
